\documentclass[oneside,a4paper,12pt]{book}

\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{url}
\usepackage{graphicx}
%\usepackage{a4wide}
\usepackage{geometry}
\usepackage{named}
\usepackage{color}
\usepackage{amsmath}
\usepackage{html} % quitar para imprimir
\usepackage{hthtml} % quitar para imprimir
\usepackage{hyperref} % quitar para imprimir
\usepackage{tabularx} % ambiente tabular especial
\usepackage{listings} % escribir código fuente

% Opciones para escribir el código fuente
\definecolor{darkgray}{rgb}{0.95,0.95,0.95}
\lstset{	
	backgroundcolor=\color{darkgray}, 
	%basicstyle=12pt, 
	commentstyle=\color{blue}\bfseries\emph,
	linewidth=\textwidth, 
	showstringspaces=false,
	extendedchars=false,
	breaklines=true,
	tabsize=4,	
	numbers=left, 
	stepnumber=5, 
	numbersep=10pt,
	keywordstyle=\color{red}\bfseries\textbf,
	frame=trBL,
	captionpos=b                 % sets the caption-position to bottom
}
\pretolerance=10000

\pretolerance=10000
%Para que no corte las palabras al final de la linea.

\DeclareGraphicsExtensions{.png,.jpg,.pdf,.eps,.JPG}
\usepackage{geometry}
\geometry{a4paper, left=2.6cm, right=2.2cm, top=3.0cm, bottom=3.0cm}

\linespread{1.3}

\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}

\begin{document}

\include{portada}

\clearpage
\thispagestyle{empty}

%\vspace{5cm}
%\makebox[15cm][r]{
%\begin{tabular}{ll}
%&\emph{}\\
%&\\
%&\emph{}
%\\
%\end{tabular}
%}

\pagenumbering{arabic}
\setcounter{page}{1}

% Para que salga la bibliografía en el indice

%\let\OLDthebibliography=\thebibliography
%\def\thebibliography#1{\OLDthebibliography{#1}%
%  \addcontentsline{toc}{chapter}{\bibname}}

\tableofcontents
%\listoffigures

\include{1-introduccion}
\include{2-objetivos}
\include{3-entorno}
\include{4-descripcion}
\include{5-experimentos}
\include{6-conclusiones}

%\bibliographystyle{named}
%\bibliography{bibliografia}

\end{document}
